package com.controller.swagger;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

import javax.annotation.Resource;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.entity.User;
import com.service.UserService;

/**
 * 人员信息控制类
 * @author XiaChengwei 
 * @date:  2017-07-14 16:45:29
 */
//@RestController
//@RequestMapping(value = "/swagger", produces = MediaType.APPLICATION_JSON_VALUE)
//@Api(value = "用户信息", description = "用户信息", produces = MediaType.APPLICATION_JSON_VALUE)
public class SwaggerController {
    
    @Resource
    UserService service;
    
    @ResponseBody
    @RequestMapping(value = "/selectAllUsers", method = RequestMethod.GET)
    @ApiOperation(value = "查询所有的人员信息并分页展示", notes = "查询所有的人员信息并分页展示")
    @ApiImplicitParams({
    @ApiImplicitParam(name = "page",value = "跳转到的页数", required = true, paramType = "query"),
    @ApiImplicitParam(name = "size",value = "每页展示的记录数", required = true, paramType = "query")
    })
    public User selectAllUsers(Integer page, Integer size) {
        
        return null;
    }
}